base_path = 'D:\JiangShan\data_seq\otb100\Benchmark\';

p = [];
p.video_path = choose_video(base_path);
if isempty(p.video_path), return, end  %user cancelled

[p.img_files, pos, target_sz, ground_truth, p.video_path] = ...
	load_video_info(p.video_path);

p.img_path = '';
p.init_pos = floor(pos) + floor(target_sz/2);
p.target_sz = target_sz;

im = imread(p.img_files{1});
% grayscale sequence? --> use 1D instead of 3D histograms
%if(size(im,3)==1)
%    params.grayscale_sequence = true;
%end

p.init_pos = floor(pos) + floor(target_sz/2);
p.target_sz = target_sz;

p = init(p);
results = tracker(p);
